﻿/*************************************************************************
* @filename : User.cs
* @function : 定义存储用户登录信息的User类
* @author   : Tuphie
* @version  : 1.00
* @date     : 2011-03-23
* @direction: 科院宽带系统登录客户端
**************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace netLog
{
    [Serializable]  //表示这个类可以被序列化
    public class User
    {
        string _loginName = null;
        public string LoginName
        {
            get { return _loginName; }
            set { _loginName = value; }
        }

        string _loingPassword = null;
        public string LoingPassword
        {
            get
            {
                if (_loingPassword != "")
                    return MyEncrypt.DecryptDES(_loingPassword);
                return _loingPassword;
            }
            set { _loingPassword = value; }
        }

        public User(string loginName, string loginPwd)
        {
            _loginName = loginName;
            _loingPassword = loginPwd;
        }  
    }
}
